package com.tarena.sentinel.demo02.handler.block;

import com.alibaba.csp.sentinel.slots.block.BlockException;

public class GlobalBlockHandler {

    // 必须是静态方法
    public static String blockExceptionHandler(String name, BlockException e){
        return "你的请求被流量拦截了!";
    }

}
